<template>
	<view class="image-wrapper">
		<!-- 显示图片 -->
		<image class="image-item" :src="picSrc"></image>
		<!-- 显示剩余数量的遮罩层 -->
		<!-- <view class="image-mask">
			<text class="mask-text">+{{ remainCount }}</text>
		</view> -->
	</view>
</template>

<script>
	export default {
		props: {
			picSrc: String,
			remainCount: Number
		},
		name: "first-remain-image",
		data() {
			return {

			};
		},
		onLoad() {
			console.log(picSrc);
			console.log(remainCount);
		}
	}
</script>

<style scoped>
	.image-wrapper {
		position: relative;
		/* border: 1px solid #333; */
		width: 100%;
		height: 100%;
	}

	.image-item {
		margin: 2px;
		width: 80px;
		height: 80px;
	}

	.image-mask {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		/* 半透明黑色背景 */
		/* border-radius: 4px; */
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 2px;
	}

	.mask-text {
		color: white;
		font-size: 18px;
		font-weight: bold;
	}
</style>